import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home/index.vue'
import Detail from '../views/Detail/index.vue'
const router = createRouter({
  history: createWebHistory(),
  routes: [
    { path: '/', redirect: '/detail' },
    { path: '/detail', component: Detail },
    { path: '/home', component: Home },
  ],
})
export default router
